package com.guaoran.spring.demo.controller;

import com.guaoran.spring.demo.cyclicdependence.BeanA;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author gucheng
 * @Description
 *  循环依赖
 * 2019-03-12 14:05
 */
@Controller
public class TestController {
    @Autowired
    private BeanA beanA;

    @ResponseBody
    @RequestMapping("/www")
    public void test(){
        beanA.testA();
    }
}
